package com.jkoss.wine.bulletin.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;


/**
 * 公司公告
 * 
 * @Author 周华军
 * @Version 1.0, 2018-10-31
 * @See
 * @Since com.jkoss.wine.bulletin.entity
 * @Description: TODO
 */
public class Bulletin extends Model<Bulletin> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private String id;
    /**
     * 标题
     */
    @TableField("title")
    private String title;
    /**
     * 内容
     */
    @TableField("content")
    private String content;
    /**
     * 发布人id
     */
    @TableField("employee_id")
    private String employeeId;
    /**
     * 发布时间
     */
    @TableField("release_time")
    private Date releaseTime;
    /**
     * 当操作人为null时，表示自动录入
     */
    @TableField("operator")
    private String operator;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private Date addTime;
    /**
     * 是否删除：0-未删除、1-已删除、2-不能删除
     */
    @TableField("del")
    private Integer del;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Bulletin{" +
        ", id=" + id +
        ", title=" + title +
        ", content=" + content +
        ", employeeId=" + employeeId +
        ", releaseTime=" + releaseTime +
        ", operator=" + operator +
        ", addTime=" + addTime +
        ", del=" + del +
        "}";
    }
}
